import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false


import HomePage from './views/HomePage.vue'
import Order from './views/Order.vue'
import Mine from './views/Mine.vue'
import Category from './views/Category.vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [{
        path: '/HomePage',
        component: HomePage
    },
    {
        path: '/Order',
        component: Order
    },
    {
        path: '/Mine',
        component: Mine
    },
    {
        path: '/Category',
        component: Category
    }
]

const router = new VueRouter({ routes, mode: 'history' })
new Vue({
    render: h => h(App),
    router
}).$mount('#app')